package com.aforce3.trailertracer.utils;

import javax.vecmath.Color3f;

public class Color extends Color3f
{
	public Color(){
		super();
	}
	public Color(float x, float y, float z){
		super(x, y, z);
	}
	public Color(Color3f c){
		super(c);
	}
	
	public void removeNegatives(){
		if(x < 0) x=0;
		if(y < 0) y=0;
		if(z < 0) z=0;
	}
	
	public void confirmValid(){
		if(x > 1) x=1;
		if(y > 1) y=1;
		if(z > 1) z=1;
		removeNegatives();
	}
	
	public void mult(Color3f c){
		x *= c.x;
		y *= c.y;
		z *= c.z;
	}
}
